<h1>Contacts List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Name</th>
      <th>Adres</th>
      <th>Phonenumber</th>
      <th>Email</th>
      <th>Postcode</th>
      <th>Place</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($contacts as $contact): ?>
    <tr>
      <td><a href="<?php echo url_for('contact/show?id='.$contact->getId()) ?>"><?php echo $contact->getId() ?></a></td>
      <td><?php echo $contact->getName() ?></td>
      <td><?php echo $contact->getAdres() ?></td>
      <td><?php echo $contact->getPhonenumber() ?></td>
      <td><?php echo $contact->getEmail() ?></td>
      <td><?php echo $contact->getPostcode() ?></td>
      <td><?php echo $contact->getPlace() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('contact/new') ?>">New</a>
